import { BaseEntity } from "./BaseEntity";
import OmsOrderItem from "./OmsOrderItem";
import OmsOrderStatus from "./OmsOrderStatus";
import OmsPaymentType from "./OmsPaymentType";
import UmsMember from "./UmsMember";

export class OmsOrder extends BaseEntity {
    code!: string | null;
    orderStatus!: OmsOrderStatus | null;
    memberId!: number | null;
    memberNickname!: string | null;
    member?: UmsMember | null;
    amount!: number | null;
    receiverName!: string | null;
    receiverPhone!: string | null;
    receiverProvinceCode!: string | null;
    receiverProvince!: string | null;
    receiverCityCode!: string | null;
    receiverCity!: string | null;
    receiverDistrictCode!: string | null;
    receiverDistrict!: string | null;
    receiverAddress!: string | null;
    orderTime?: string | null;
    paymentTime?: string | null;
    paymentType?: OmsPaymentType | null;
    paymentAccount?: string | null;
    expressTime?: string | null;
    expressCompany?: string | null;
    expressNumber?: string | null;
    receivedTime?: string | null;
    confirmTime?: string | null;
    closedTime?: string | null;
    items?: OmsOrderItem[] = [];
}

export default OmsOrder;